package com.gome.ocean.service.authority;

import java.util.List;
import java.util.Map;

import com.github.pagehelper.Page;
import com.gome.ocean.dao.model.authority.Function;

/**
 * Created by liuqingxia on 2016/6/1.
 */
public interface FunctionService {

    public boolean insertFunction(Function function);

    public boolean removeFunction(Long id);

    public boolean updateFunction(Function function);

    public Function findFunctionById(Long id);

    public List<Function> findFunctionByUrl(String url);

    public Page<Function> findAllFunctions(int pageNum, int pageSize);

    public List<Function> findFunctionsByIds(List<Long> ids);

    public Map<String, List<Function>> findFunctionGroupByModule();

    public List<Function> findFuncByUrlAndType(String url, Integer methodType);

    public boolean batchUpdateSqlValue(Map<String, Object> map);
}
